package com.jxc.entity;

/**
 * Librarylist entity. @author MyEclipse Persistence Tools
 */

public class Librarylist implements java.io.Serializable {

	// Fields

	private Integer id;
	private Library library;
	private Commodity commodity;
	private Integer quantity;
	private String remarks;
	private String sn;

	// Constructors

	/** default constructor */
	public Librarylist() {
	}

	/** full constructor */
	public Librarylist(Library library, Commodity commodity, Integer quantity,
			String remarks, String sn) {
		this.library = library;
		this.commodity = commodity;
		this.quantity = quantity;
		this.remarks = remarks;
		this.sn = sn;
	}
	
	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + ((id == null) ? 0 : id.hashCode());
		return result;
	}

	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		Librarylist other = (Librarylist) obj;
		if (id == null) {
			if (other.id != null)
				return false;
		} else if (!id.equals(other.id))
			return false;
		return true;
	}

	// Property accessors

	public Integer getId() {
		return this.id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public Library getLibrary() {
		return this.library;
	}

	public void setLibrary(Library library) {
		this.library = library;
	}

	public Commodity getCommodity() {
		return this.commodity;
	}

	public void setCommodity(Commodity commodity) {
		this.commodity = commodity;
	}

	public Integer getQuantity() {
		return this.quantity;
	}

	public void setQuantity(Integer quantity) {
		this.quantity = quantity;
	}

	public String getRemarks() {
		return this.remarks;
	}

	public void setRemarks(String remarks) {
		this.remarks = remarks;
	}

	public String getSn() {
		return this.sn;
	}

	public void setSn(String sn) {
		this.sn = sn;
	}

}